package com.bootdo.finance.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.finance.dao.RolessDao;
import com.bootdo.finance.domain.RolessDO;
import com.bootdo.finance.service.RolessService;



@Service
public class RolessServiceImpl implements RolessService {
	@Autowired
	private RolessDao roleDao;
	
	@Override
	public RolessDO get(Long id){
		return roleDao.get(id);
	}
	
	@Override
	public List<RolessDO> list(Map<String, Object> map){
		return roleDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return roleDao.count(map);
	}
	
	@Override
	public int save(RolessDO role){
		return roleDao.save(role);
	}
	
	@Override
	public int update(RolessDO role){
		return roleDao.update(role);
	}
	
	@Override
	public int remove(Long id){
		return roleDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return roleDao.batchRemove(ids);
	}
	
}
